function login(){
	var account = document.getElementById("account");
	var password = document.getElementById("password");		
	if((account.value!="")&&(password.value!="")){
		var d = new dquery();
		d.post("LoginAction", "account="+account.value+"&password="+password.value,function(result){
			var data = JSON.parse(result);
			console.log(data.status);
			if(data.status == 1){
				redirect("home.jsp");
			}else{
				alert("用户或密码错误。");
			}
		});
	}
}

function redirect(url){
	window.location.href=url;  
}


